/**
 * CopyRight © 2012 USTC SINOVATE SOFTWARE CO.LTD All Rights Reserved.
 */

package com.cmcc.zysoft.infocollection.mobile.controller;

import java.util.Map;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.cmcc.zysoft.infocollection.common.BaseController;
import com.cmcc.zysoft.infocollection.mobile.service.MResourcePropertyService;

/**
 * @author 袁凤建
 * <br />邮箱: yuan.fengjian@ustcinfo.com
 * <br />描述: MResourcePropertyController.java
 * <br />版本: 1.0.0
 * <br />日期: 2013-8-8 下午5:21:59
 * <br />CopyRight © 2012 USTC SINOVATE SOFTWARE CO.LTD All Rights Reserved.
 */

@Controller
@RequestMapping("/mobile/property")
public class MResourcePropertyController extends BaseController {
	
	/**
	 * 属性名称: mResourcePropertyService.
	 * 类       型: MResourcePropertyService.
	 */
	@Resource
	private MResourcePropertyService mResourcePropertyService;

	/**
	 * 模板字段是否必填接口-通过该接口,可以返回行业模板中的字段是否为必填.
	 * @param industryId 行业ID
	 * @return map
	 */
	@RequestMapping("/template.htm")
	@ResponseBody
	public Map<String, Object> getTemplate(String industryId) {
		return this.mResourcePropertyService.getTemplate(industryId);
	}
}